package com.gper.edu.vip.designer.inter.segregation;

/**
 * @Author: ellis.guan
 * @Description:  鸟只需要实现相应行为的动物接口
 * @Date: 2020/2/28 22:38
 * @Version: 1.0
 */
public class Bird implements IFlyAnimal,IEatAnimal {

    public Bird() {
    }

    @Override
    public void eat() {
        System.out.println("鸟吃虫子");
    }

    @Override
    public void fly() {
        System.out.println("鸟能飞翔");
    }
}
